package cn.jkgly.mobile;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("/mobile")
public class mobile {

    @RequestMapping("/bind")
    public String bind(@RequestParam String openid, HttpServletRequest request) {
        request.setAttribute("openid", openid);
        return "/pcBindMyMobileTerminal";
    }


    @RequestMapping("/index")
    public String index(HttpServletRequest request) {
//        request.setAttribute("openid",openid);
        return "/mobileIndex";
    }
}
